/*
 * Copyright user2010
 * All rights reserved
 */

package org.myorg.applitest.gui.swing.components.panel;

import javax.swing.GroupLayout;
import javax.swing.JPanel;
import javax.swing.LayoutStyle;

/**
 *
 * @author user
 */
public class PnlLoginPassword extends JPanel{
    public PnlLoginPassword(){
        initComponents();
        
    }

    public void initComponents()
    {
        this.lblLogin = new LbzHrzTextField("Login",94);
        this.lblPasswd = new LbzHrzPassword("Password",63);
        this.lblConfirmPasswd = new LbzHrzPassword("Confirm password",5);


            GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()

                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblLogin)
                    .addComponent(lblPasswd)
                    .addComponent(lblConfirmPasswd)
                     )
                )
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblLogin)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblPasswd)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblConfirmPasswd)
                )
        );

    }
    public String getLogin(){
        return lblLogin.getText();
    }

    public String getPassword(){
        return lblPasswd.getText();
    }

    public String getConfirmPassword(){
        return lblConfirmPasswd.getText();
    }

    private LbzHrzTextField lblLogin;
    private LbzHrzPassword lblPasswd;
    private LbzHrzPassword lblConfirmPasswd;

}
